
using AutoMapper;
using SOEI.Solution.Application.Contracts.Customized.RoomSourceVerifyV1.Dtos;
using SOEI.Solution.Customized.Dtos;
using SOEI.Solution.DomainEntities.RoomSourceVerifiyV1;
using SOEI.Solution.DomainEntities.RoomSourceVerifiyV1.Dtos;

namespace SOEI.Solution.CustomDtoAutoMapper
{

    /// <summary>
    /// 配置Member的AutoMapper映射
    /// 前往 <see cref="SolutionApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// RoomVerifyV1DtoAutoMapper.CreateMappings(configuration);
    /// </summary>
    public static class RoomVerifyV1DtoAutoMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap<RoomVerifyV1, RoomVerifyV1ListDto>();
            configuration.CreateMap<RoomVerifyV1ListDto, RoomVerifyV1>();

            configuration.CreateMap<RoomVerifyV1EditDto, RoomVerifyV1>();
            configuration.CreateMap<RoomVerifyV1, RoomVerifyV1EditDto>();

            configuration.CreateMap<FastVerifyV1EditDto, RoomVerifyV1EditDto>();
            configuration.CreateMap<RoomVerifyV1EditDto, FastVerifyV1EditDto>();


            configuration.CreateMap<RoomVerifyV1, FastVerifyV1EditDto>();
            configuration.CreateMap<FastVerifyV1EditDto, RoomVerifyV1>();

            configuration.CreateMap<LicensesUploadSaveEditDto, LicensesUpload>();
            configuration.CreateMap<LicensesUpload, LicensesUploadSaveEditDto>();

            configuration.CreateMap<DigestEditDto, CommissionContractDigest>();
            configuration.CreateMap<CommissionContractDigest, DigestEditDto>();


            configuration.CreateMap<CommissionContractMainBody, MainBodyEditDto>();
            configuration.CreateMap<MainBodyEditDto, CommissionContractMainBody>();

            configuration.CreateMap<HousingInfoEditDto, RoomVerifyV1>();
            configuration.CreateMap<RoomVerifyV1, HousingInfoEditDto>();


        }
    }
}
